import { ref } from 'vue';
import { useWebStore } from 'src/stores/webStore';

const webStore = useWebStore();

export const dialogFlag = ref(false);

export const userInfo = ref(webStore.userInfo);

// 刷新store中用户的信息
export function initUserInfo() {
  webStore.refreshUserInfo().then(() => {
    userInfo.value = webStore.userInfo;
  });
}
